package ar.edu.unlam.lyc.notacionIntermedia;

import java.util.Iterator;
import java.util.LinkedList;
public class ListaTercetos{
	private static LinkedList instance;
	
	private ListaTercetos(){
		
	}
	
	public static LinkedList getInstance(){
		if (instance==null){
			instance = new LinkedList();
		}
		return instance;
	}
	
	public static void marcarEtiquetados(){
		Iterator iter = instance.iterator();
		while (iter.hasNext()){
			Terceto t = (Terceto)iter.next();
			if (t.a.startsWith("b")){
				int i = new Integer(t.c).intValue();
				Terceto aux = (Terceto)(instance.get(i-1));
				aux.preEtiquetado = true;
			}
		}
	}
}